package com.village.friend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yl
 * @since 2021-11-13
 */
@ApiModel(value = "Activity对象", description = "")
@Data
public class Activity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "活动类型")
    private Integer type;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "活动地址")
    private String city;

    @ApiModelProperty(value = "期待对象")
    private Integer destType;

    @ApiModelProperty(value = "活动时间类型")
    private Integer timeType;

    @ApiModelProperty(value = "活动时间")
    private LocalDateTime time;

    @ApiModelProperty(value = "补充说明")
    private String instr;

    @ApiModelProperty(value = "配图路径,最多3张")
    private String images;

    @ApiModelProperty(value = "微信号")
    private String wechat;

    @ApiModelProperty(value = "活动状态：1 进行中，2已取消，3 已删除")
    private Integer status;

    @ApiModelProperty(value = "建立时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;

    // 衍生字段，不是数据库字段
    @TableField(exist = false)
    Double distance;
    @TableField(exist = false)
    String name;
    @TableField(exist = false)
    String icon;
    @TableField(exist = false)
    String userCity;
    @TableField(exist = false)
    Integer gender;
    @TableField(exist = false)
    Integer vipLevel;
    @TableField(exist = false)
    Integer vipLeft;
    @TableField(exist = false)
    Integer isJoin;
    @TableField(exist = false)
    Integer isAgree;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getDestType() {
        return destType;
    }

    public void setDestType(Integer destType) {
        this.destType = destType;
    }

    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public String getInstr() {
        return instr;
    }

    public void setInstr(String instr) {
        this.instr = instr;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "id=" + id +
                ", type=" + type +
                ", userId=" + userId +
                ", city=" + city +
                ", destType=" + destType +
                ", timeType=" + timeType +
                ", time=" + time +
                ", instr=" + instr +
                ", images=" + images +
                ", wechat=" + wechat +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
